<template>
    <div class="buymain">
        <div>
            <span>商品</span>
            <p>
                <span></span>
                <span>繁华声遁入空门，折煞了世人。门偏冷辗转一生，情债又几本。</span>
                <span>×<span>数</span></span>
                <span>商品类型</span>
                <span>￥<span>价钱</span></span>
            </p>
            <p>
                <span></span>
                <span>繁华声遁入空门，折煞了世人。门偏冷辗转一生，情债又几本。</span>
                <span>×<span>数</span></span>
                <span>商品类型</span>
                <span>￥<span>价钱</span></span>
            </p>
            <p>
                <span></span>
                <span>繁华声遁入空门，折煞了世人。门偏冷辗转一生，情债又几本。</span>
                <span>×<span>数</span></span>
                <span>商品类型</span>
                <span>￥<span>价钱</span></span>
            </p>
        </div>
    </div>
</template>

<script>
export default {

}
</script>

<style scoped>
.buymain{
    width: 100%;
    background-color:#EEEEEE;
    padding:0.2rem 0rem 0.2rem;
}
.buymain>div{
    width: 3.57rem;
    background-color:white;
    margin:auto;
    border-radius: 0.05rem;
}
.buymain>div>p{
    height: 1.25rem;
    padding-left: 0.1rem;
    position: relative;
}
.buymain>div>span{
    display:block;
    width: 3.3rem;
    height: 0.45rem;
    line-height: 0.45rem;
    font-size: 0.14rem;
    border-bottom:0.01rem solid rgb(219, 219, 219);
    margin-left:0.1rem ;
}
.buymain>div>p>span:nth-child(1){
    width: 0.77rem;
    height: 0.77rem;
    display: inline-block;
    background-color:pink;
    position: absolute;
    left: 0.1rem;
    top: 0.2rem;
    background-image: url(../../public/img/1.jpg);
    background-repeat: no-repeat;
    background-size: 0.77rem;
    border-radius: 0.03rem;
}

.buymain>div>p>span:nth-child(2){
    display: inline-block;
    width: 2.14rem;
    height: 0.36rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.12rem;
    position: absolute;
    left: 1.03rem;
    top: 0.18rem;
}

.buymain>div>p>span:nth-child(3){
    position: absolute;
    top: 0.25rem;
    left: 3.2rem;
    font-size: 0.14rem;
}
.buymain>div>p>span:nth-child(4){
    font-size: 0.12rem;
    position: absolute;
    left:1.03rem;
    top:0.6rem;
    color: gray;
}
.buymain>div>p>span:nth-child(5){
    display: inline-block;
    font-size: 0.14rem;
    color: red;
    position: absolute;
    left:1.03rem;
    top:0.8rem;
}
</style>